package cn.tedu.hotel.serve.pojo.dto;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class UserLoginInfoDTO implements Serializable {
    @NotNull(message = "必须填写用户名")
    @NotEmpty(message = "用户名不能为空")
    private String username;

    @NotNull(message = "必须填写密码")
    @NotEmpty(message = "密码不能为空")
    private String password;
}
